﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TRPOP.Controls
{
    /// <summary>
    /// Image
    /// </summary>
    public class Image : System.Web.UI.WebControls.Image
    {
        /// <summary>
        /// 
        /// </summary>
        public Image()
        {

        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="writer"></param>
        protected override void Render(System.Web.UI.HtmlTextWriter writer)
        {
            //如果没有CssClass,添默认class=
            if (this.CssClass == "")
            {
                this.Attributes.Add("class", "img");
            }
            base.Render(writer);
        }
    }
}
